package string;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 右旋字符串
 * User: Li_yizYa
 * Date: 2025—04—07
 * Time: 21:37
 */
public class Solution4 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String str = scan.next();
        char[] s = str.toCharArray();
        reverse(s, 0, s.length - 1);
        reverse(s, 0, n - 1);
        reverse(s, n, s.length - 1);
        System.out.println(s);
    }

    private static void reverse(char[] s, int left, int right) {
        while (left < right) {
            char tmp = s[left];
            s[left] = s[right];
            s[right] = tmp;
            left++;
            right--;
        }
    }
}
